@import './variables.module.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './ruoyi.scss';

body {
  height: 100%;
  margin: 0;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.mes-title {
  line-height: 32px;
  font-size: 16px;
  color: #111a34;
  font-weight: 500;

  &:before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 12px;
    background: #f7b334;
    border-radius: 2px;
    margin-right: 6px;

  }
}

.form-search {
  .el-form-item__content {
    width: 240px;
  }
}
.searchItem{
  .el-form-item__content {
    width: auto;
  }
}
// .el-form-item--default .el-form-item__label{
//   text-align: left ;
//   display: inline-block;
// }
// 设置  tooltip 的宽度   popper-class="my-tooltip"
.my-tooltip {
  max-width: 400px !important;
}
.el-popper{
  max-width: 500px !important;
}
.el-popper.el-select__popper{
  max-width: 800px !important;
}
.hasTagsView .app-main .app-container {
  height: calc(100vh - 84px);
  min-width: 600px;
  min-height: 400px;
  position: relative;
  overflow: auto;
}

.app-main .app-container {
  height: calc(100vh - 84px);
  width: 100%;
  position: relative;
  overflow: auto;
  min-width: 600px;
  min-height: 400px;
  position: relative;
}
.side-page-warp{
  .side-page-con{
    .app-container {
      height: 100%;
      width: 100%;
      position: relative;
      overflow: auto;
      
    }
  }
}
table tr td .cell button .el-icon{
  width: 0;
}
.el-calendar__body table thead th{
  color: #333;
  font-weight: 600;
}
.wordOrderListClass .el-table__header-wrapper .el-checkbox{
  display: none;
}

.custom-dialog {
  /* 确保对话框内容也是居中的 */
  display: flex;
  flex-direction: column;
  margin:0 !important;
  position:absolute;
  top:40%;
  left:50%;
  transform:translate(-50%,-50%);
  max-height:calc(100% - 30px);
  max-width:calc(100% - 30px);
}

.custom-dialog .el-dialog__body {
  flex:1;
  overflow: auto;
}

.el-table {
  .cell{
    text-align: center;
  }
  //  表格列上加 class-name="leftClassCell" 靠左
  .leftClassCell{
    .cell{
      text-align: left;
    }
  }
  //  表格列上加 class-name="rightClassCell" 靠右
  .rightClassCell{
    .cell{
      text-align: right;
    }
  }
  // 这段样式是处理表格中数据为空时则展示 "-"，注意：这里是只针对用非自定义展示内容的处理
  .el-table__body td .cell:empty::before,
  // 这一行是可以针对表格自定义默认内容做空处理
  .el-table__body td .cell .scope-render div span:empty::before {
    content: "-";
    color: #606266;
  }
}


.loadingClass{
  position: fixed;
  width: 100vw;
  z-index: 10000;
  height: 100vh;
  top: 0;
  left: 0;
}


@media (max-width: 1200px) {
  .el-col-6{
    display: block;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
  .el-dialog {
    width: 90% !important;
    max-height: 80vh !important;
    overflow-y: auto !important;
  }
}
.formClass ._fc-l-menu {
  display: none !important;
}
.formClass ._fc-l{
  padding: 8px 0px !important;
  width: 200px !important;
}
.formClass ._fc-r{
  padding: 8px 0px !important;
  width: 300px !important;
}
